package com.cmbfae.springBootDemo.controller;

import com.cmbfae.springBootDemo.domain.TInfoArticle;
import com.cmbfae.springBootDemo.service.TInfoArticleService;
import com.google.common.collect.Lists;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ┏┛ ┻━━━━━┛ ┻┓
 * ┃　　　━　　　┃
 * ┃　┳┛　  ┗┳　┃
 * ┃　　　　　　 ┃
 * ┃　　　┻　　　┃
 * ┗━┓　　　┏━━━┛
 * ┃　　　┃   神兽保佑,代码无BUG！
 * ┃　　　┗━━━━━━━━━┓
 * ┃　　　　　　　   ┣┓
 * ┃　　　　        ┏┛
 * ┗━┓ ┓ ┏━━━┳ ┓ ┏━┛
 * ┃ ┫ ┫   ┃ ┫ ┫
 * ┗━┻━┛   ┗━┻━┛
 * Created by xuwl on 2018/5/25.
 */
@RestController
@RequestMapping("/tInfoArticle")
public class TInfoArticleController {
@Autowired
private TInfoArticleService tInfoArticleService;
@PostMapping("/findList")
    public List<TInfoArticle> findList(){
    List<TInfoArticle> list = Lists.newArrayList();
            list = tInfoArticleService.findList();
    return list;
    }
}
